import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_deer/res/colors.dart';
import 'cashier_page_discount.dart';
import 'cashier_pay_type_bottom.dart';

class CashierPageRight extends StatefulWidget {
  const CashierPageRight({super.key});

  @override
  State<CashierPageRight> createState() => _CashierPageRightState();
}

class _CashierPageRightState extends State<CashierPageRight> {
  @override
  Widget build(BuildContext context) {
    return Column(
      crossAxisAlignment: CrossAxisAlignment.start, // 竖向排列，左对齐
      children: [
        // 优惠
        const CashierPageDiscount(key: Key('cashier_page_discount'),),

        // 分割线
        Container(height: 4, width: double.infinity, decoration: const BoxDecoration(color: Colours.grey)),

        // 支付方式
        const Expanded(
          child: CashierPayTypePage(),
        ),
      ],
    );
  }
}
